package user;
import book.BookList;
import opera1.*;
abstract public class User {
    private String name;
    protected IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    abstract public int menu();

    public void work(int choose, BookList bookList) {
        this.iOperations[choose].doWork(bookList);
    }
}
